import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import baseconfig from '@/config/base.config';
 
// 登录
const Login = () => import('@/views/login/index.vue')

// 首页
const Home = () => import('@/views/home/index.vue')
 
const routes: Array<RouteRecordRaw> =  [
  {
    path: '/',
    redirect: `/index`,
    component: Home // 首页
  },
  {
    path: '/login',
    name: '登录',
    component: Login,
    meta: {
      hideHeader: true
    }
  },
  {
    path: '/index',
    name: '污染地图',
    component: Home
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes 
})

export default router
 